import request from '@/utils/request'

export function getList(params: any) {
  return request({
    url: '/api/job/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/api/job/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/api/job/doDelete',
    method: 'post',
    data,
  })
}

export function getDetail(data: any) {
  return request({
    url: '/api/job/getDetail',
    method: 'post',
    data,
  })
}

export function batchAddUserJob(data: any) {
  return request({
    url: '/api/job/batchAddUserJob',
    method: 'post',
    data,
  })
}

export function getJobFileList(data: any) {
  return request({
    url: '/api/job/getJobFileList',
    method: 'post',
    data,
  })
}

export function handleJob(data: any) {
  return request({
    url: '/api/job/handleJob',
    method: 'post',
    data,
  })
}

export function getJobInfo(data: any) {
  return request({
    url: '/api/job/getJobInfo',
    method: 'post',
    data,
  })
}
